package com.xyyl.patient.service.article;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xyyl.patient.core.support.Pager;
import com.xyyl.patient.entity.article.BannerEntity;
import com.xyyl.patient.mapper.article.BannerMapper;

@Service("bannerService")
public class BannerServiceImp implements BannerService {
	@Autowired
	private BannerMapper bannerMapper;

	@Override
	public List<BannerEntity> queryList(Pager pager) {
		return bannerMapper.queryForPage(pager);
	}

	@Override
	public BannerEntity getByBannerId(Integer bannerId) {
		return bannerMapper.selectOne(bannerId);
	}

}
